package cn.ahaiahaixx.dp.thread;

public class ThreadDemo {
  public static void main(String[] args) {
    
    
    int count = 10;
    for (int i = 0; i < count; i++) {
      // 创建线程,将MyRunnable任务用后台线程启动
      Thread thread = new Thread(new MyRunnable());
      //启动线程
      thread.start();
    }
    System.out.println("主线程完成");
  }
}
